package com.xiaoke.service;

import com.xiaoke.entity.Region;
import com.xiaoke.mapper.RegionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public interface RegionService {

    @GetMapping("/region/findByParent")
    List<Region> findByParent(@RequestParam("parentId") Integer parentId);
}
